package com.sbpm.crmbpm.client.panels;

import com.sencha.gxt.widget.core.client.ContentPanel;
import com.sencha.gxt.widget.core.client.container.Container;
import com.sencha.gxt.widget.core.client.container.MarginData;

public abstract class CollapsibleFormFieldSet extends ContentPanel
{

    private Container container;

    public CollapsibleFormFieldSet( String headingText )
    {
        setHeadingText( headingText );
        setCollapsible( true );

        container = createContainer();

        add( container, new MarginData( 5, 5, 5, 5 ) );
    }

    public Container getContainer()
    {
        return container;
    }

    protected abstract Container createContainer();
}
